#pragma once
#include <memory>
#include "View.h"
class SkCanvas;
class SkFont;

class TextView :
	public View
{
public:
	TextView(View* parent);
	virtual ~TextView();

	void setFont(std::shared_ptr<SkFont> font);
	std::shared_ptr<SkFont> getFont();
private:
	virtual bool paint(SkCanvas* canvas);

	virtual bool paintBackground(SkCanvas* canvas);

	virtual bool paintFrontground(SkCanvas* canvas);

private:
	std::shared_ptr<SkFont> font_;
};

